package com.jordge.hibernate.pojo;

import java.util.Set;

public class Author{
    private int id;
    private String name;
    private Set<Work> works;

    public void setId(int id){
        this.id=id;
    }

    public void setName(String name){
        this.name=name;
    }

    public String getName(){
        return this.name;
    }

    public int getId(){
        return this.id;
    }

    public void setWorks(Set<Work> works){
        this.works=works;
    }

    public Set<Work> getWorks(){
        return this.works;
    }
}